﻿using System;

namespace Bbm.Persistence
{
    public class FullNameFactory : INameFactory
    {
        public CacheStoreName GetNameForStore(Type key, Type value, string domain)
        {
            if (value == null) 
                throw new ArgumentNullException("value");

            return new CacheStoreName(key == null ? "" : key.FullName, value.FullName, domain ?? "");
        }
    }
}